<%@ page import="com.pb.news.entity.User" %>
<%@ page import="org.apache.commons.lang.StringUtils" %><%--
  Created by IntelliJ IDEA.
  User: Jovi
  Date: 2018/4/11
  Time: 下午3:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String guestName = request.getParameter("guestName");
    if (StringUtils.isBlank(guestName)) {
        response.sendRedirect("enter.jsp");
    } else {
        User user = new User();
        user.setUserName(guestName);
        session.setAttribute("guest", user);
        response.sendRedirect("online.jsp");
    }
%>
<html>
<head>
    <title>Title</title>
</head>
<body>

</body>
</html>
